package com.example.musicplayer.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.musicplayer.R;


public class ShowuserActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.showuser);
        Intent intent = getIntent();
//        Student student = (Student) intent.getSerializableExtra(TableContanst.STUDENT_TABLE);
//        ((TextView)findViewById(R.id.tv_info_id)).setText(student.getId()+"");
//        ((TextView)findViewById(R.id.tv_info_name)).setText(student.getName());
//        ((TextView)findViewById(R.id.tv_info_age)).setText(student.getAge()+"");
//        ((TextView)findViewById(R.id.tv_info_sex)).setText(student.getSex());
//        ((TextView)findViewById(R.id.tv_info_likes)).setText(student.getLike());
//        ((TextView)findViewById(R.id.tv_info_train_date)).setText(student.getTrainDate());
//        ((TextView)findViewById(R.id.tv_info_phone)).setText(student.getPhoneNumber());
        ((TextView)findViewById(R.id.tv_info_id)).setText("2545433583");
        ((TextView)findViewById(R.id.tv_info_name)).setText("风卷残云");
        ((TextView)findViewById(R.id.tv_info_age)).setText("18");
        ((TextView)findViewById(R.id.tv_info_sex)).setText("男");
        ((TextView)findViewById(R.id.tv_info_likes)).setText("摇滚");
        ((TextView)findViewById(R.id.tv_info_train_date)).setText("2020/12/25");
        ((TextView)findViewById(R.id.tv_info_phone)).setText("12138");
    }

    public void goBack(View view) {
        finish();
    }
}